//
//  PaperTestModel.m
//  智云题库
//
//  Created by 毕武侠 on 2017/3/22.
//  Copyright © 2017年 bwx. All rights reserved.
//

#import "PaperTestModel.h"

@implementation PaperTestModel

+ (NSDictionary *)objectClassInArray {
    return @{@"ques_stem"  : [PaperTypeModel class],
             @"material"   : [PaperTypeModel class],
             @"analysis"   : [PaperTypeModel class]};
}

- (void)mj_keyValuesDidFinishConvertingToObject {
    
    //【论述题】
    [self.ques_stem insertObject:[PaperTypeModel createQuestTest] atIndex:0];
    self.textLayout = [YYTextLayout layoutWithTexts:self.ques_stem];
    
    //【分析材料】
    [self.material insertObject:[PaperTypeModel createQuestTestMaterial] atIndex:0];
    self.materialLayout = [YYTextLayout layoutWithTexts:self.material];
    
    //【参考答案】
    [self.analysis insertObject:[PaperTypeModel createQuestTestAnswer] atIndex:0];
    self.answerLayout = [YYTextLayout layoutWithTexts:self.analysis];
}

@end
